// import { ApiResponse, Channel, Channels } from '@/types/data'
// import { ChannelAction, RootThunkAction } from '@/types/store'
import request from '@/utils/request'

export const getSuggestion = async (keyword: string) => {
  const res = await request.get('/suggestion', { params: { q: keyword } })
  return res
}

export const getResult = async (keyword: string) => {
  const res = await request.get('/search', { params: { q: keyword } })
  console.log('getResult', res)
  return res
}
